﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Response.User
{
    /// <summary>
    /// 角色菜单权限
    /// </summary>
    public class RoleMenuPower
    {
        /// <summary>
        /// 路径
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [JsonProperty("iconCls")]
        public string Icon { get; set; }

        /// <summary>
        /// 子菜单
        /// </summary>
        public List<RoleMenuPower> Children { get; set; }

        /// <summary>
        /// 菜单按钮
        /// </summary>
        public MenuButtonView MenuPower { get; set; }
    }


    /// <summary>
    /// 菜单按钮 显示视图
    /// </summary>
    public class MenuButtonView
    {
        /// <summary>
        /// 页面按钮权限
        /// </summary>
        public List<string> Page { get; set; } = new List<string>();

        /// <summary>
        /// 分页列表按钮权限
        /// </summary>
        public List<string> PageList { get; set; } = new List<string>();

        /// <summary>
        /// 分页子列表按钮权限
        /// </summary>
        public List<string> ChildrenList { get; set; } = new List<string>();
    }
}
